package com.leesche.zcsp.node.web.service.impl;

import com.leesche.zcsp.node.web.dao.PubDevicePayDetailStatisticsDao;
import com.leesche.zcsp.node.web.model.PubDevicePayDetailStatistics;
import com.leesche.zcsp.node.web.model.PubDevicePayDetailStatisticsCriteria;
import com.leesche.zcsp.node.web.service.PubDevicePayDetailStatisticsService;
import com.leesche.zcsp.node.web.service.impl.data.read.InfoAccountDto;
import com.leesche.zcsp.node.web.service.impl.data.read.PubDevicePayDetailStatisticsDto;
import com.leesche.zcsp.node.web.service.impl.data.read.QueryPubDevicePayDetailStatisticsCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Title: PubDevicePayDetailServiceImpl.java
 * @Package com.leesche.zcsp.node.service.impl
 * @Description:()
 * @author dennies yang
 * @date 2016年9月22日 下午4:22:41
 * @version V1.0
 */
@Service
@Transactional
public class PubDevicePayDetailStatisticsServiceImpl
		extends
		BaseServiceImpl<PubDevicePayDetailStatistics, PubDevicePayDetailStatisticsCriteria, PubDevicePayDetailStatisticsDto, QueryPubDevicePayDetailStatisticsCondition, Long>
		implements PubDevicePayDetailStatisticsService {
	@Autowired
	private PubDevicePayDetailStatisticsDao pubDevicePayDetailStatisticsDao;

	@Autowired
	public void setBaseDao(PubDevicePayDetailStatisticsDao pubDevicePayDetailStatisticsDao) {
		super.setBaseDao(pubDevicePayDetailStatisticsDao);
	}

	@Override
	public List<Long> findIncomeDetail(QueryPubDevicePayDetailStatisticsCondition condition) {
		return pubDevicePayDetailStatisticsDao.findIncomeDetail(condition);
	}

	@Override
	public List<PubDevicePayDetailStatistics> findDeviceIncomeAccount(QueryPubDevicePayDetailStatisticsCondition condition) {
		return pubDevicePayDetailStatisticsDao.selectAccountByStatisticsCondition(condition);
	}

	@Override
	public int updateDeviceIncomeAccount(QueryPubDevicePayDetailStatisticsCondition condition) {
		return pubDevicePayDetailStatisticsDao.updateDeviceIncomeAccount(condition);
	}

	@Override
	public List<InfoAccountDto> findInfoAccounts(QueryPubDevicePayDetailStatisticsCondition condition) {
		return pubDevicePayDetailStatisticsDao.findInfoAccounts(condition);
	}

	@Override
	public List<InfoAccountDto> findOnlinePayment(QueryPubDevicePayDetailStatisticsCondition condition) {
		return pubDevicePayDetailStatisticsDao.findOnlinePayment(condition);
	}

	@Override
	public PubDevicePayDetailStatisticsDto findFactoryByCondition(QueryPubDevicePayDetailStatisticsCondition statisticsCondition) {
		return pubDevicePayDetailStatisticsDao.findFactoryByCondition(statisticsCondition);
	}

	@Override
	public List<PubDevicePayDetailStatisticsDto> findDeviceProfitByCondition(QueryPubDevicePayDetailStatisticsCondition condition) {
		return pubDevicePayDetailStatisticsDao.selectDeviceProfitByCondition(condition);
	}
}
